package cn.iocoder.yudao.module.etl.dto.authModel;

import cn.iocoder.yudao.module.etl.dto.ITreeBase;
import lombok.Data;

import java.util.List;

/**
 * Author: wangjiahao
 * Date: 2021/11/5
 * Description:
 */

public class VAuthModelDTO extends VAuthModelWithBLOBs implements ITreeBase<VAuthModelDTO> {

    private String privileges;

    private List<VAuthModelDTO> children;

    private long allLeafs = 0L;

    private String innerId;

    private Boolean isPlugin = false;

    @Override
    public String toString(){
        return this.getName();
    }


    public String getPrivileges() {
        return privileges;
    }

    public void setPrivileges(String privileges) {
        this.privileges = privileges;
    }

    @Override
    public List<VAuthModelDTO> getChildren() {
        return children;
    }

    @Override
    public void setChildren(List<VAuthModelDTO> children) {
        this.children = children;
    }

    public long getAllLeafs() {
        return allLeafs;
    }

    public void setAllLeafs(long allLeafs) {
        this.allLeafs = allLeafs;
    }

    public String getInnerId() {
        return innerId;
    }

    public void setInnerId(String innerId) {
        this.innerId = innerId;
    }

    public Boolean getPlugin() {
        return isPlugin;
    }

    public void setPlugin(Boolean plugin) {
        isPlugin = plugin;
    }
}
